﻿using System;
namespace Pay.DTO.chpay {
	/// <summary>
	/// 传话请求基类
	/// </summary>
	public class ch_base_req {
		public ch_base_req() {
			tf_timestamp = DateTime.Now.ToString("yyyyMMddHHmmss");
		}
		/// <summary>
		/// 接口在网关openapi中对应的id
		/// </summary>
		public string service_id { get; set; }
		/// <summary>
		/// 调用方在doggy系统中的appid
		/// </summary>
		public string appid { get; set; }
		/// <summary>
		/// 时间戳格式：yyyyMMddHHmmss，如20141126161900
		/// </summary>
		public string tf_timestamp { get; set; }
		/// <summary>
		/// 签名类型
		/// </summary>
		public string sign_type { get { return "MD5"; } }
		/// <summary>
		/// 生成签名时，需要加入key字段
		/// </summary>
		public string tf_sign { get; set; }
	}

	/// <summary>
	/// 响应基类
	/// </summary>
	public class ch_base_resp<T> {
		/// <summary>
		/// success：成功,error：业务失败,exception：异常失败
		/// </summary>
		public string result { get; set; }
		/// <summary>
		/// 错误编码
		/// </summary>
		public string code { get; set; }
		/// <summary>
		/// 信息描述
		/// </summary>
		public string msg { get; set; }
		/// <summary>
		/// 返回数据数量:记录数
		/// </summary>
		public string count { get; set; }
		public T data { get; set; }
	}
}
